<form class="form-horizontal {{selector}}">
    <div class="row">
        {% for li in list %} {% if "dateRange" == li.type %}
        <div class="col-sm-4">
            <div class="form-group" id="{{li.id}}">
                <label class="col-sm-4 control-label">{{li.title}}: </label>
                <div id="date-range" class="input-daterange input-group col-sm-8 no-plr">
                    <input type="text" class="form-control dateStart" name="{{li.start.name}}" value="{{li.start.value}}">
                    <span class="input-group-addon">到</span>
                    <input type="text" class="form-control dateEnd" name="{{li.end.name}}" value="{{li.end.value}}">
                </div>
            </div>
        </div>
        {% elseif "hidden" == li.type %}
            <input type="{{li.type}}" name="{{li.name}}" id="{{li.id}}" value="{{li.value}}">
        {% elseif "select" == li.type %}
        <div class="col-xs-6 col-md-4 ">
            <div class="form-group">
                <label class="col-xs-4 control-label">{{li.title}}: </label>
                <div class="col-xs-8 no-plr">
                    <select name="{{li.name}}" class="form-control {{li.class}}"></select>
                </div>
            </div>
        </div>
        {% else %}
        <div class="col-xs-6 col-md-4">
            <div class="form-group">
                <label class="col-xs-4 control-label">{{li.title}}: </label>
                <div class="col-xs-8  no-plr">
                    <input type="{{li.type}}" name="{{li.name}}" class="form-control" placeholder="{{li.placeholder}}">
                </div>
            </div>
        </div>
        {% endif %} {% endfor %}

        {% if !isHideSearchBtn %}
        <!--{% if (list.length-1)%4===1 %}col-sm-offset-6{% elseif (list.length-1)%4===2 %}col-sm-offset-3{% else %}col-sm-offset-9{% endif %}-->
        <div class="col-sm-5 col-sm-offset-8">
            <div class="form-group">
                <div class="col-xs-4">
                    <button class="btn btn-success searchButton btn-block" type="button">搜索</button>
                </div>
                <div class="col-xs-5 col-lg-4 col-xs-offset-1">
                    <button type="reset" class="btn btn-info btn-block resetForm" value="resetForm">清空搜索条件</button>
                </div>
            </div>
        </div>
        {% endif %}
    </div>
</form>